.class Lcom/waiqin365/lightapp/visit/eo;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Z

.field final synthetic b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;Z)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    iput-boolean p2, p0, Lcom/waiqin365/lightapp/visit/eo;->a:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->am(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Landroid/widget/PopupWindow;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->am(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Landroid/widget/PopupWindow;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->am(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Landroid/widget/PopupWindow;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->an(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->o(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/u;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Ljava/lang/String;

    move-result-object v1

    iget-boolean v2, p0, Lcom/waiqin365/lightapp/visit/eo;->a:Z

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->k(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/waiqin365/lightapp/visit/a/a/u;-><init>(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/eo;->b:Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;->h(Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;)Landroid/os/Handler;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void
.end method
